package mosync.mobilelualiveditor;

import java.awt.Color;

import javax.swing.JColorChooser;
import javax.swing.JComponent;

public class ColorPickerController extends PropertyController
{
	public ColorPickerController(String name)
	{
		super(name);
	}

	public String getCallbackTemplateHeader(String name)
	{
		return "function on_" + name + "_changed(color)";
	}

	public JComponent createComponent()
	{
		return new JColorChooser(Color.black);
	}
}
